/*
 * @Author: jacky jackyliusir@gmail.com
 * @Date: 2024-07-04 21:21:34
 * @LastEditors: jacky jackyliusir@gmail.com
 * @LastEditTime: 2024-07-04 23:40:26
 * @FilePath: /demo/src/demo.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*************************************
 * 
 *        89c52 sdcc blink demo
 * 
 * CPU: 89C52
 * FREQ: 12MHz
 * PIN: P00
 * 
 * ***********************************
*/

#include <reg52.h>
#include <stdio.h>
#include <utils.h>

void main(void)
{
    unsigned char c = 0xab;
    while (1) {
        P0 = 0xFA;
        // P1 = 0xFF;
        // P2 = 0x0F;
        // P3 = 0xF0;
        sleep();
        P0 = 0xF0;
        // P1 = 0;
        // P2 = 0;
        // P3 = 0;
        sleep();

        c--;
    }
}
